package com.xpand.guava;


import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;

/**
 * @Author: wei.wang
 * @Description:
 * @Date 2017/12/27 17:44
 * @Modified
 */
public class MulimapTest {
    public static void main(String[] args) {
        Multimap<String, String> multimap = HashMultimap.create();
        multimap.put("111","1");
        multimap.put("111","1");
        multimap.put("111","1");
        multimap.put("123","1");
        multimap.put("123","2");
        multimap.put("123","3");

        System.out.println(multimap);
        System.out.println(multimap.get("123").iterator());
        System.out.println(multimap.asMap());
    }
}
